//this file must be include by tag 'script' in  every page whitch contains standart view element #mianStage
//this file should be include by this:

//<script type="text/javascript" src="js/common"></script>

//
$(document).ready( function() {
  document.oncontextmenu = function(){return false;}
  //set body visible
 $('#mainStage').css("visibility","visible");
  //tam.toCenter($('#mainStage'));
  var mainMenu = $('.twi .mainMenu-wrapper .mainMenu ul li a');
  $(mainMenu[0]).css('margin-left','0px');
  $(mainMenu[mainMenu.length-1]).css('margin-right','0px');
  $('#mainStage').css('opacity',0);
  //set mainStage to he center of page

  //call app.init
  app.init();
  // mainStage fade in
  $('#mainStage').animate({
    opacity: 1
  }, 800, function() {

  });

});

window.onresize= function() {
   // tam.toCenter($('#mainStage'));
}

var menuItemsSet = [
"idstr_aboutus",
"idstr_gallery",
"idstr_menus",
"idstr_news",
"idstr_events",
"idstr_contact"
]
var setMainMenuStyle= function() {
  if(typeof($("#currentMenuItem")!='undefined')) {
    var val = $('#currentMenuItem').val();

  }

}



document.body.oncopy = function(ev)
{
    ev = ev || window.event;
   
    return false;
}

